package pers.gxm.builder;

public final class BookBuilder {
    private Book book;

    private BookBuilder() {
        book = new Book();
    }

    public static BookBuilder aBook() {
        return new BookBuilder();
    }

    public BookBuilder withBookJacket(String bookJacket) {
        book.setBookJacket(bookJacket);
        return this;
    }

    public BookBuilder withCover(String cover) {
        book.setCover(cover);
        return this;
    }

    public BookBuilder withTitle(String title) {
        book.setTitle(title);
        return this;
    }

    public BookBuilder withAuthor(String author) {
        book.setAuthor(author);
        return this;
    }

    public BookBuilder withTranslator(String translator) {
        book.setTranslator(translator);
        return this;
    }

    public BookBuilder withPublisher(String publisher) {
        book.setPublisher(publisher);
        return this;
    }

    public BookBuilder withNumberOfEdition(String numberOfEdition) {
        book.setNumberOfEdition(numberOfEdition);
        return this;
    }

    public Book build() {
        return book;
    }
}
